/**
 * 文件名：PropertiesController
 * 版权：Copyright 2017-2022 CMCC All Rights Reserved.
 * 描述：
 */

package com.hand.project.controller;

import ch.qos.logback.classic.Logger;
import com.hand.project.dto.User;
import org.slf4j.LoggerFactory;
import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RestController;

/**
 *
 *
 *
 * @author shuai.wang02@hand-china.com
 * @version 1.0
 * @date 2018/11/22 19:11
 */
@RequestMapping("/properties")
@RestController
public class PropertiesController {

    private static final Logger log = (Logger) LoggerFactory.getLogger(PropertiesController.class);

    private final User user;

    @Autowired
    public PropertiesController(User user) {
        this.user = user;
    }

    @GetMapping("/getUser")
    public User myProperties1() {
        return user;
    }
}